package com.zxj

import org.apache.spark.sql.SparkSession

object MySparkSessionExtensionTest {

  def main(args: Array[String]): Unit = {
    val spark = SparkSession
      .builder()
      .appName("MySparkSessionExtensionTest")
      .config("spark.sql.extensions", classOf[MySparkSessionExtension].getName)
      .getOrCreate()
    spark.sql("SELECT 1 + 0").show()
  }


}
